  function checkAttackFrom(){
    var middleX,middleY,top,left;
    var attackMapFrom = $(".attackFrom");
		middleX = attackMapFrom.css("width");
    middleY = attackMapFrom.css("height");
    top = attackMapFrom.css("top");
    left = attackMapFrom.css("left");

    var actualTop = parseInt(top) - ((60/2)-(parseInt(middleY)/2));
    var actualLeft = parseInt(left)+parseInt(middleX);
    
    console.debug("top: " + actualTop  + " left: " + actualLeft);
		$("#attackFrom").css("width","18px")
		.css("height","60px")
		$("#attackFrom").css("top",actualTop);
		$("#attackFrom").css("left",actualLeft);
		$("#attackFrom").css("background-image","url(../images/attackFrom.gif)")
		.css("background-repeat","no-repeat")
		.css("visibility","visible")
    .css("z-Index","100");
		
		setTimeout("HideImageFrom();",30000);
	}
	
	function HideImageFrom(){
		$("#attackFrom").css("visibility","hidden");
	}
  
  function checkAttackTo(){
    var middleX,middleY,top,left;
    var attackMapTo = $(".attackTo");
		middleX = attackMapTo.css("width");
    middleY = attackMapTo.css("height");
    top = attackMapTo.css("top");
    left = attackMapTo.css("left");

    var actualTop = parseInt(top) - ((56/2)-(parseInt(middleY)/2));
    var actualLeft = parseInt(left)+parseInt(middleX);

		$("#attackTo").css("width","50px")
		.css("height","56px")
		$("#attackTo").css("top",actualTop);
		$("#attackTo").css("left",actualLeft);
		$("#attackTo").css("background-image","url(../images/attackTo.gif)")
		.css("background-repeat","no-repeat")
		.css("visibility","visible")
    .css("z-Index","100");
		
		setTimeout("HideImageTo();",30000);
	}
	
	function HideImageTo(){
		$("#attackTo").css("visibility","hidden");
	}

